home *** CD-ROM | disk | FTP | other *** search
/ This Disc Bytes! / Power Computing - The Disc 2 - This Disc Bytes.ISO / mac / CodeWarrior 7 Lite for 68K / MacOS Support / Headers / Universal Headers / TerminalTools.h < prev    next >
Text File  |  1995-07-06  |  3KB  |  152 lines

  1. /*
  2.      File:        TerminalTools.h
  3.  
  4.      Contains:    Communications Toolbox Terminal tools Interfaces.
  5.  
  6.      Version:    Technology:    System 7.5
  7.                  Package:    Universal Interfaces 2.1 in “MPW Latest” on ETO #18
  8.  
  9.      Copyright:    © 1984-1995 by Apple Computer, Inc.
  10.                  All rights reserved.
  11.  
  12.      Bugs?:        If you find a problem with this file, use the Apple Bug Reporter
  13.                  stack.  Include the file and version information (from above)
  14.                  in the problem description and send to:
  15.                      Internet:    apple.bugs@applelink.apple.com
  16.                      AppleLink:    APPLE.BUGS
  17.  
  18. */
  19.  
  20. #ifndef __TERMINALTOOLS__
  21. #define __TERMINALTOOLS__
  22.  
  23.  
  24. #ifndef __DIALOGS__
  25. #include <Dialogs.h>
  26. #endif
  27. /*    #include <Errors.h>                                            */
  28. /*        #include <ConditionalMacros.h>                            */
  29. /*    #include <Memory.h>                                            */
  30. /*        #include <Types.h>                                        */
  31. /*        #include <MixedMode.h>                                    */
  32. /*    #include <Menus.h>                                            */
  33. /*        #include <Quickdraw.h>                                    */
  34. /*            #include <QuickdrawText.h>                            */
  35. /*    #include <Controls.h>                                        */
  36. /*    #include <Windows.h>                                        */
  37. /*        #include <Events.h>                                        */
  38. /*            #include <OSUtils.h>                                */
  39. /*    #include <TextEdit.h>                                        */
  40.  
  41. #ifndef __TERMINALS__
  42. #include <Terminals.h>
  43. #endif
  44. /*    #include <CTBUtilities.h>                                    */
  45. /*        #include <StandardFile.h>                                */
  46. /*            #include <Files.h>                                    */
  47. /*                #include <Finder.h>                                */
  48. /*        #include <AppleTalk.h>                                    */
  49. /*    #include <Connections.h>                                    */
  50.  
  51. #ifdef __cplusplus
  52. extern "C" {
  53. #endif
  54.  
  55. #if PRAGMA_ALIGN_SUPPORTED
  56. #pragma options align=mac68k
  57. #endif
  58.  
  59. #if PRAGMA_IMPORT_SUPPORTED
  60. #pragma import on
  61. #endif
  62.  
  63.  
  64. enum {
  65.     tdefType                    = 'tdef',
  66.     tvalType                    = 'tval',
  67.     tsetType                    = 'tset',
  68.     tlocType                    = 'tloc',
  69.     tscrType                    = 'tscr',
  70.     tbndType                    = 'tbnd',
  71.     tverType                    = 'vers',
  72. /* messages */
  73.     tmInitMsg                    = 0,
  74.     tmDisposeMsg                = 1,
  75.     tmSuspendMsg                = 2,
  76.     tmResumeMsg                    = 3,
  77.     tmMenuMsg                    = 4,
  78.     tmEventMsg                    = 5,
  79.     tmActivateMsg                = 6,
  80.     tmDeactivateMsg                = 7,
  81.     tmGetErrorStringMsg            = 8,
  82.     tmIdleMsg                    = 50,
  83.     tmResetMsg                    = 51,
  84.     tmKeyMsg                    = 100,
  85.     tmStreamMsg                    = 101,
  86.     tmResizeMsg                    = 102,
  87.     tmUpdateMsg                    = 103,
  88.     tmClickMsg                    = 104,
  89.     tmGetSelectionMsg            = 105,
  90.     tmSetSelectionMsg            = 106,
  91.     tmScrollMsg                    = 107,
  92.     tmClearMsg                    = 108
  93. };
  94.  
  95. enum {
  96.     tmGetLineMsg                = 109,
  97.     tmPaintMsg                    = 110,
  98.     tmCursorMsg                    = 111,
  99.     tmGetEnvironsMsg            = 112,
  100.     tmDoTermKeyMsg                = 113,
  101.     tmCountTermKeysMsg            = 114,
  102.     tmGetIndTermKeyMsg            = 115,
  103. /* messages for validate DefProc    */
  104.     tmValidateMsg                = 0,
  105.     tmDefaultMsg                = 1,
  106. /* messages for Setup DefProc    */
  107.     tmSpreflightMsg                = 0,
  108.     tmSsetupMsg                    = 1,
  109.     tmSitemMsg                    = 2,
  110.     tmSfilterMsg                = 3,
  111.     tmScleanupMsg                = 4,
  112. /* messages for scripting defProc    */
  113.     tmMgetMsg                    = 0,
  114.     tmMsetMsg                    = 1,
  115. /* messages for localization defProc  */
  116.     tmL2English                    = 0,
  117.     tmL2Intl                    = 1
  118. };
  119.  
  120. typedef struct TMSearchBlock TMSearchBlock, *TMSearchBlockPtr;
  121.  
  122. struct TMSearchBlock {
  123.     StringHandle                    theString;
  124.     Rect                            where;
  125.     TMSearchTypes                    searchType;
  126.     TerminalSearchCallBackUPP        callBack;
  127.     short                            refnum;
  128.     TMSearchBlockPtr                next;
  129. };
  130. typedef struct TMSetupStruct TMSetupStruct, *TMSetupPtr;
  131.  
  132. struct TMSetupStruct {
  133.     DialogPtr                        theDialog;
  134.     short                            count;
  135.     Ptr                                theConfig;
  136.     short                            procID;                        /* procID of the tool */
  137. };
  138.  
  139. #if PRAGMA_IMPORT_SUPPORTED
  140. #pragma import off
  141. #endif
  142.  
  143. #if PRAGMA_ALIGN_SUPPORTED
  144. #pragma options align=reset
  145. #endif
  146.  
  147. #ifdef __cplusplus
  148. }
  149. #endif
  150.  
  151. #endif /* __TERMINALTOOLS__ */
  152.